-- CALC_BISHOP_MAX_HP

-- 计算最大血量
return function(bishop)
    local max_hp = FormulaM.invoke("BISHOP_BASE_HP", bishop);

    -- 玩家对召唤兽属性加成
    local addon_hp = FormulaM.invoke("SUMMON_ATTRIB_ADDITION", bishop, max_hp, "max_hp");

    -- 加成
    local prop = PropM.combine(bishop, "attrib2", "max_hp");
    max_hp = PropM.apply(prop, max_hp);

    -- 所有召唤物能力加
    prop = PropM.combine(ME.user, "summon_attrib", "hp");
    max_hp = PropM.apply(prop, max_hp);

    return max_hp + addon_hp;
end
